<script type="text/javascript">
	$(document).ready(function(){
		var userinfo = Utils.getCookie("userinfo");
		//头部赋值
		$("#header_coin").html(userinfo.coin);
		$("#header_cash").html(userinfo.cash);
		$("#header_kid_num").html(userinfo.kid_num);
		$("#header").show();
		if ( userinfo.kid_num == 0 ) {
			$("#main").load('new_kid.html');
		}else {
			$(".userinfo").append("<img src='./img/map.jpg' />");
			//$(".userinfo").append("<li>用户名:"+ userinfo.username +"</li>");
			//$(".userinfo").append("<li>昵称:"+ userinfo.nickname +"</li>");
			//$(".userinfo").append("<li>拥有小孩数量:"+ userinfo.kid_num +"</li>");
			if ( userinfo.kid_num > 0 ) {
				$("#view_kid_list").removeClass('hidden_button');
			}
		}
		$("#footer_login_bonus").click( function () {
			$("#main").load('login_bonus.html');
			$("#main").addClass('main_height');
		});
        $("#footer_clothes_shop").click( function () {
			$("#main").load('clothes_shop.html');
			$("#main").addClass('main_height');
		});
		$("#view_kid_list").click( function () {
			$("#main").load('list_kid.html');
			$("#main").addClass('main_height');
		});
	});
</script>
<div class="userinfo">
</div>
<div id="footer">
	<input type="button" id="footer_login_bonus" value="奖励" style="cursor:pointer;" />
	<input type="button" id="footer_clothes_shop" value="衣服商店" style="cursor:pointer;" />
	<input type="button" id="view_kid_list" class="hidden_button" value="查看小孩" style="cursor:pointer;" />
</div>
